package com.letoken.platform.repo.admin.po;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 后台菜单表
 * </p>
 *
 * @author 作者
 * @since 2022-12-14
 */
@Getter
@Setter
@TableName("admin_menu_copy1")
@ToString(callSuper = true)
@ApiModel(value = "AdminMenu对象", description = "后台菜单表")
public class AdminMenu extends Model<AdminMenu> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "admin_menu_id", type = IdType.AUTO)
    private Integer adminMenuId;

    @ApiModelProperty("前端名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("前端URI")
    @TableField("uri")
    private String uri;

    @ApiModelProperty("父级ID")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty("菜单类型：1菜单，2按钮，3特殊功能")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("状态：0启用，-1禁用")
    @TableField("examine_status")
    private Integer examineStatus;

    @ApiModelProperty("菜单级数")
    @TableField("level")
    private Integer level;

    @ApiModelProperty("顺序，从小到大")
    @TableField("sort")
    private Integer sort;


    @ApiModelProperty("描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除 默认0不删除")
    @TableField("is_delete")
    private Integer isDelete;


    @Override
    public Serializable pkVal() {
        return this.adminMenuId;
    }

}
